Skip to content

Conversation

@martin-swift
Copy link
Contributor

@martin-swift martin-swift commented May 10, 2019

Implementing messages from https://drive.google.com/file/d/1jMLC2cjvVk6TUDGuktVLeK3kPyn4yi7S/view and https://drive.google.com/file/d/1RKjSgyBlxBhFz7ipExKh_Z2gFU_Yb0gR/view

I tried to be fairly faithful to the spec, but I tried to avoid things like bit packing and I was also working with the constraints of SBP, particularly the 255 max message size and the fact you can only have one variable length array in a message.

Copy link
Contributor

@mfine mfine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment on using GNSS Signal. Will let others comment on the content.

Copy link
Contributor

@pmiettinen pmiettinen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know is it mentioned in the instructions but it is preferred that the generated files changes are in separate commit. Also mixing formatting changes to actual change is not optimal. Messages seem ok.

Copy link
Contributor

@benjamin0 benjamin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a few comments, could you double check the spelling before merge?

type: u8
desc: Postion of this message in the dataset
- ssr_update_interval:
type: u16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a u8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not if we want the units to be seconds. (this is one of the places I deviated from the spec)

type: u8
desc: Postion of this message in the dataset
- ssr_update_interval:
type: u16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@ljbade
Copy link
Contributor

ljbade commented May 21, 2019

A general improvement would be to include the units of the different fields in the description, that way the SBP spec is self contained and you don't need to go look up the units from the proposal docs

@martin-swift martin-swift force-pushed the martin/ORI-498-SSR-3GPP-iono branch from d07c745 to 1fe0aeb Compare May 22, 2019 17:30
- sv_id:
type: SvId
desc: Unique space vehicle identifier
- stec_quality_indicator:
Copy link
Contributor Author

@martin-swift martin-swift May 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the spec tells us how to calculate "Q" from the this value, but what are the units of Q? @benjamin0

desc: space vehicle identifier
- residual:
type: s16
desc: STEC residual (Scale factor 0.04 TECU)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and what's "U" here? Total Electron Content...? @benjamin0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit

@martin-swift martin-swift force-pushed the martin/ORI-498-SSR-3GPP-iono branch from 1fe0aeb to 39b4e8f Compare May 22, 2019 22:00
@martin-swift
Copy link
Contributor Author

martin-swift commented May 23, 2019

Everyone happy? I want to push the button on this today.

Copy link
Contributor

@silverjam silverjam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't really comment from a content perspective but the code looks good.

Copy link
Contributor

@benjamin0 benjamin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question about the num_msgs/seq_num fields in GridDefinitionHeader, otherwise lgtm!

- lon_nw_corner_enc:
type: u16
desc: encoded longitude of the northwest corner of the grid
- num_msgs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will there be more than 1 GridDefinitionHeader messages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was done to support the RLE validity list. I think that thing is pretty janky. Why would we ever send invalid data? I'd be more than happy to snip that whole RLE list out of the message, and if we really need it, include validity flag in the correction/STEC messages. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I see where they are going with this; because it's broadcast, everyone is consuming it. If the rover is in some corner case, we might want to say "hey, don't use this, because you are out of bounds from the model/whatever"

Copy link
Contributor Author

@martin-swift martin-swift May 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be a minor deviation from spec, but I could chop out the multi message support, since I think is it unlikely we'll see an RLE list that long, and you said these aren't prod messages. yes/no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I forgot about the RLE validity list, let's keep it.

@silverjam
Copy link
Contributor

@martin-swift Travis failure is the same semi-transient error we've seen for a while, I think this is good to merge.

@martin-swift martin-swift merged commit cc6b359 into master May 23, 2019
@martin-swift martin-swift deleted the martin/ORI-498-SSR-3GPP-iono branch May 23, 2019 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants